package com.wn.class30.service.impl;

import com.wn.class30.entity.Integral;
import com.wn.class30.mapper.IntegralDao;
import com.wn.class30.service.IntegralService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class IntegralServiceImpl implements IntegralService {
    @Resource
    private IntegralDao integralDao;
    @Override
    public Integral queryIntegral() throws Exception {
        Integral integral = integralDao.selectByPrimaryKey(1);
        return integral;
    }
}
